<?
    /* -*- Mode: PHP5; tab-width: 4; indent-tabs-mode: nil; basic-offset: 4 -*- */

    /*********************************************************
    *            --== InArch ==--
    *
    * @author Kulikov Alexey <a.kulikov@gmail.com>
    * @version n/a
    * @since 24.04.2005
    * @copyright essentialmind.com 2005
    *
    *********************************************************/
    
    /***
    * Class clientNodeRoot
    ****
    * This classs represents a root page of any solution
    ****
    * @package clientNodes
    * @author A Kulikov <a.kulikov@gmail.com>
    * @version n/a
    * @since 24.04.2005
    * @copyright essentialmind.com 2005
    ***/
    class clientNodeRoot extends clientNode{

        /**
         * clientNodeRoot::process()
         * 
         * Process inputs
         * 
         * @return void 
         **/
        public function process(){
            $data          = $this->db->getRow("SELECT * FROM node_root WHERE id = ".$this->object);
            $data['title'] = $this->db->getOne("SELECT title FROM objectmap WHERE nodeid = 1 AND version = 1");
            $this->smarty->assign('data',$data);
        }

        /**
         * admin404::setTemplate()
         * 
         * set the action template to 404.html
         * 
         * @return void
         **/
        public function setTemplate(){
            $this->setActionTemplate('root.html');
        }
    }
?>